// 用户注册
export const register = (params?: any) => {
    return post('/user/register', params);
}
// 用户登录
export const login = (params?: any) => {
    return post('/user/login', params);
}
// 获取个人信息
export const get_self_info = (params?: any) => {
    return get('/user/get_self_info');
}
// 退出登录
export const logout = (params?: any) => {
    return get('/user/logout');
}

// 创建用户
export const create_user = (params?: any) => {
    return post('/manager/user/create', params);
}
// 获取用户列表
export const get_user_list = (params?: any) => {
    return get(`/manager/user/list/${params.flag}/${params.page}/${params.size}`);
}
// 启用/禁用用户
export const user_status = (params?: any) => {
    return post('/manager/user/status', params);
}

// 获取表格格式权限菜单列表
export const get_auth_list = (params?: any) => {
    return get(`/manager/auth/list/${params.flag}`);
}
// 新增/修改权限菜单
export const create_auth = (params?: any) => {
    return post('/manager/auth/create', params);
}
// 删除权限菜单
export const delete_auth = (params?: any) => {
    return post('/manager/auth/delete', params);
}


// 获取用户组列表
export const get_group_list = (params?: any) => {
    return get(`/manager/group/list/${params.flag}`)
}
// 新增/修改用户组
export const create_group = (params?: any) => {
    return post('/manager/group/create', params);
}
// 启用/禁用用户组
export const group_status = (params?: any) => {
    return post('/manager/group/status', params);
}